﻿@model dynamic
@{  var SearchAction = (string)ViewData["SearchAction"];
    var UpdateTargetId = (string)ViewData["UpdateTargetId"];
    var NewLinkTitle = (string)ViewData["NewLinkTitle"];
    var NewLinkAction = (string)ViewData["NewLinkAction"];
    var DialogTitle = (string)ViewData["DialogTitle"];
}
<p>
    <table class="width noborder toolbox">
        <tr>
            <td>
                <div class="icons icons-add">
                    @Ajax.ActionLink(NewLinkTitle, NewLinkAction, ViewData["NewLinkArg"], new AjaxOptions() { LoadingElementId="OnLoadingSpan",UpdateTargetId = "dialogbox", OnComplete = "showDialog('" + DialogTitle + "');", HttpMethod = "Get", InsertionMode = InsertionMode.Replace, OnFailure = "OnSiteError" })
                </div>
            </td>
            @Html.Partial("SearchPartialLite", new { SearchAction = string.Empty })
        </tr>
    </table>
</p>
